package HGbet;

import java.awt.Color;
import java.text.SimpleDateFormat;

import HGclient.BetRatioManager;
import HGclient.HGclienthttp;
import team.gl.nio.cln.NettyClient;
import team.gl.nio.cmn.Bag;
import team.gl.nio.svr.NettyServer;

public class ClientThread extends Thread{
	
	public long sleepTime = 30*1000;

	
	public void setSleepTime(int sec){
		//sleepTime = sec * 1000;
	}
	
	private HGbethttp hgBethttp = null;
	
	ClientThread(HGbethttp http) {
		hgBethttp = http;
	}
	@Override
    public void run() {
		
		String address = "http://66.133.87.54/";
	
		try{			
				
				
			    hgBethttp.setLoginParams(address, "gcwfool8", "aaa222");
				
				int b = hgBethttp.login();
				if(b == 1){
					//hg.getTotalBet();
				}else{
					hgBethttp.login();
				}
				
				SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

				
				while(true){
					

				}
				

		}catch(Exception e){
			e.printStackTrace();
		}	
	}
}
